#include "requetes.h"
#include <string.h>


int typeRequete(char* requete)
{
	// put
	if ( !strncmp( requete, "000" , 3 ) )	
		return 0;
	// push
	if ( !strncmp( requete, "001" , 3 ) )	
		return 1;
	// pull
	if ( !strncmp( requete, "010" , 3 ) )	
		return 2;


	if ( !strncmp( requete, "011" , 3 ) )	
		return 3;
	if ( !strncmp( requete, "100" , 3 ) )	
		return 4;
	if ( !strncmp( requete, "101" , 3 ) )	
		return 5;
	if ( !strncmp( requete, "110" , 3 ) )	
		return 6;
	if ( !strncmp( requete, "111" , 3 ) )	
		return 7;
	return -1;
}
